package com.bawei.module_mine.model.service

import com.bawei.library_net.RetrofitManager
import com.bawei.library_net.entity.ResponseEntity
import com.bawei.module_mine.model.api.LoginApi
import com.bawei.module_mine.model.entity.UserEntity
import retrofit2.http.Query

/**
 * @Author : yaotianxue
 * @Time : On 2023/6/26 15:44
 * @Description : LoginService
 */
class LoginService {
    private lateinit var api:LoginApi

    init {
        api = RetrofitManager.instance.create(LoginApi::class.java)
    }

   suspend fun login(username:String, password:String): ResponseEntity<UserEntity>{
        return api.login(username,password)
    }



}